<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    
         

    <h:body>
        <ui:composition template="templateGeneral.xhtml">
            <ui:define name="title">Doktorske</ui:define>
            <ui:define name="center">

                <h:form id="form">

                    <ui:repeat value="#{tableKatedre.semestri}" var="semestar">
                        <p:dataTable id="semestar" var="predmet" value="#{semestar}" selectionMode="single" 
                                     selection="#{tableKatedre.selectedPredmet}" rowKey="#{predmet.sifra}"  
                                     emptyMessage="Nema predmeta za ovaj semestar">

                            <p:column headerText="Šifra" style="font-weight: bold; width:80px">  
                                <h:outputText value="#{predmet.sifra}"/>  
                            </p:column>  

                            <p:column headerText="Informacije" style="font-weight: bold; width:280px">  
                                <h:outputText value="#{predmet.naziv}"/>  
                            </p:column>  

                            <p:column headerText="Tip" style="font-weight: bold; width:80px">  
                                <h:outputText value="#{predmet.tip}"/> 
                            </p:column>

                            <p:column headerText="Espb" style="font-weight: bold; width:40px">  
                                <h:outputText value="#{predmet.espb}"/> 
                            </p:column>

                            <p:column headerText="Fond casova" style="font-weight: bold; width:120px">  
                                <h:outputText value="#{predmet.fondCasova}"/> 
                            </p:column>

                            <p:column headerText="Semestar" style="font-weight: bold; width:40px">  
                                <h:outputText value="#{predmet.semestar}"/> 
                            </p:column>

                        </p:dataTable> 
                    </ui:repeat>

                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>

</html>  